/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2022-09-17
 * Time: 9:17
 */
public class Test {
    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        mySingleList.addLast(1);
        mySingleList.addLast(1);
        mySingleList.addLast(3);
        mySingleList.addLast(4);
        mySingleList.addLast(5);
        mySingleList.addLast(1);
        mySingleList.addLast(1);
        mySingleList.addFirst(8);
        mySingleList.display();
        mySingleList.removeAllKey(1);
        mySingleList.display();
//        try {
//            mySingleList.addIndex(3,8);
//        } catch (indexWrongful e) {
//            throw new RuntimeException(e);
//        }
////        mySingleList.remove(6);
//        mySingleList.display();
//        int l = mySingleList.size();
//        System.out.println(l);
//        System.out.println("========================================");
//        System.out.println(mySingleList.contains(6));
    }
}
